--create table Polygon(
-- idPol int primary key,
-- descricao varchar(50)
--)

--create table Vertice(
-- idVert int,
-- x int not null,
-- y int not null,
-- primary key(idVert, idPol),
-- idPol int references Polygon
--)

insert into Polygon values (1, 'Rectangle')
go
insert into Vertice values (1, 0, 0, 1)
insert into Vertice values (2, 0, 2, 1)
insert into Vertice values (3, 2, 0, 1)
insert into Vertice values (4, 2, 2, 1)
go
insert into Polygon values (2, 'Triangle')
go
insert into Vertice values (1, 0, 0, 2)
insert into Vertice values (2, 2, 0, 2)
insert into Vertice values (3, 2, 1, 2)
go
